package c.j.a.d.b.d;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import c.j.a.d.b.n.r;

/* compiled from: IDownloadForbiddenAidlHandler */
public interface j0 extends IInterface {

    /* compiled from: IDownloadForbiddenAidlHandler */
    public static abstract class a extends Binder implements j0 {
        public static final /* synthetic */ int a = 0;

        /* compiled from: IDownloadForbiddenAidlHandler */
        public static class a implements j0 {
            public IBinder a;

            public a(IBinder iBinder) {
                this.a = iBinder;
            }

            public IBinder asBinder() {
                return this.a;
            }

            public boolean m0(i0 i0Var) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadForbiddenAidlHandler");
                    obtain.writeStrongBinder(i0Var != null ? (c.j.a.d.b.d.i0.a) i0Var : null);
                    boolean z = false;
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    if (obtain2.readInt() != 0) {
                        z = true;
                    }
                    obtain2.recycle();
                    obtain.recycle();
                    return z;
                } catch (Throwable th) {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public a() {
            attachInterface(this, "com.ss.android.socialbase.downloader.depend.IDownloadForbiddenAidlHandler");
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.ss.android.socialbase.downloader.depend.IDownloadForbiddenAidlHandler";
            if (i == 1) {
                i0 i0Var;
                parcel.enforceInterface(str);
                IBinder readStrongBinder = parcel.readStrongBinder();
                if (readStrongBinder == null) {
                    i0Var = null;
                } else {
                    IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadForbiddenAidlCallback");
                    if (queryLocalInterface == null || !(queryLocalInterface instanceof i0)) {
                        i0Var = new c.j.a.d.b.d.i0.a.a(readStrongBinder);
                    } else {
                        i0Var = (i0) queryLocalInterface;
                    }
                }
                boolean m0 = ((r) this).m0(i0Var);
                parcel2.writeNoException();
                parcel2.writeInt(m0);
                return true;
            } else if (i != 1598968902) {
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel2.writeString(str);
                return true;
            }
        }
    }

    boolean m0(i0 i0Var) throws RemoteException;
}
